package com.edu.hre.struts.form.recruit;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;

public class CanLicenseUpdateForm extends ActionForm {
	
	private int id = 0;
	private int canId;

	private int licenseType;
	private String licenseNo;
	private Date issuedDate;
	private Date expiryDate;

	private String message = "";
	private boolean isAddNew = true;
	
	private List<LabelValueBean> allLicenses = new ArrayList<LabelValueBean>();
	
	public CanLicenseUpdateForm() {

	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getIssuedDate() {
		return CommonUtils.dateToString(issuedDate);
	}

	public void setIssuedDate(String issuedDate) {
		this.issuedDate = CommonUtils.stringToDate(issuedDate);
	}

	public String getExpiryDate() {
		return CommonUtils.dateToString(expiryDate);
	}

	public void setExpiryDate(String expiryDate) {
		this.expiryDate = CommonUtils.stringToDate(expiryDate);
	}

	public int getLicenseType() {
		return licenseType;
	}

	public void setLicenseType(int licenseType) {
		this.licenseType = licenseType;
	}

	public String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public List<LabelValueBean> getAllLicenses() {
		return allLicenses;
	}

	public void setAllLicenses(List<LabelValueBean> allLicenses) {
		this.allLicenses = allLicenses;
	}

	public int getCanId() {
		return canId;
	}

	public void setCanId(int canId) {
		this.canId = canId;
	}
}
